#include "dri.h"

void dri_register_driver(dri_driver_descriptor_t *desc){
	if (desc->driver_magic != DRI_DRIVER_MAGIC)
		return;//TODO : Signal error
	switch (desc->driver_class){
		case DRI_CLASS_CHAR://Simple stream drivers like TTY
			break;//TODO: Implement interface
		case DRI_CLASS_BLOCK://Seekable block based drivers, like storage
			break;
		case DRI_CLASS_IFS://Installable (meta)filesystem drivers
			ifs_register((ifs_descriptor_t *)desc->driver_class_desc);
			break;
		default:
			//TODO:Signal error
			break;
	}
}